//package com.coolbi.onsupai.core.test;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//import org.apache.log4j.Logger;
//import org.junit.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
//
//import com.coolbi.onsupai.core.biz.AccountFundBiz;
//import com.coolbi.onsupai.core.entity.AccountFund;
//
//@ContextConfiguration(locations = { "classpath*:/spring/applicationContext*.xml" })
//public class AccountFundTestCase extends AbstractJUnit4SpringContextTests {
//
//	private static final Logger log = Logger.getLogger(AccountFundTestCase.class);
//	
//	@Autowired
//	private AccountFundBiz accountFundBiz;
//	public void setAccountFundBiz(AccountFundBiz accountFundBiz) {
//		this.accountFundBiz = accountFundBiz;
//	}
//	
////	@Test
////	public void testSave() throws Exception {
////		AccountFund accountFund = new AccountFund();
////		accountFund.setCustomerId(7L);
////		accountFund.setAccountBalance(800);
////		accountFund.setFrozenAmount(60);
////		accountFundBiz.save(accountFund);
////		log.debug("accountFund.id---------------->" + accountFund.getCustomerId());
////	}
//	
////	@Test
////	public void testDelete() throws Exception {
////		accountFundBiz.delete(1L);
////	}
//	
////	@Test
////	public void testUpdate() throws Exception {
////		AccountFund accountFund = new AccountFund();
////		accountFund.setCustomerId(7L);
////		accountFund.setFrozenAmount(0);
////		accountFundBiz.update(accountFund);
////	}
//	
////	@Test
////	public void testGet() throws Exception {
////		log.debug("accountFund.frozenAmount------------->" + accountFundBiz.get(2).getFrozenAmount());
////	}
//	
////	@Test
////	public void testList() throws Exception {
////		List<AccountFund> list = accountFundBiz.list();
////		log.debug("list.size---------->" + list.size());
////	}
//	
////	@Test
////	public void testListByPage() throws Exception {
////		List<AccountFund> list = accountFundBiz.listByPage(0, 5);
////		log.debug("list.size---------->" + list.size());
////	}
//	
////	@Test
////	public void testListByParameter() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("accountBalance", 150);
////		List<AccountFund> list = accountFundBiz.find(parameter);
////		log.debug("list.size---------->" + list.size());
////	}
//	
////	@Test
////	public void testListByParameterPage() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("accountBalance", 1000);
////		List<AccountFund> list = accountFundBiz.findByPage(parameter, 0, 2);
////		log.debug("list.size---------->" + list.size());
////	}
//	
//}
